<%@ page contentType="text/html;charset=iso-8859-1" language="java"%>
<%@ include file="/WEB-INF/tiles/include.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title><spring:message code="app.title"/></title>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
    <meta http-equiv="Content-Script-Type" content="text/javascript"/>
    <meta name="author" content="thomson470@gmail.com"/>
    <meta name="Copyright" content="(c)2009 - Ciracas Team. All Rights Reserved"/>    
	<link rel="shortcut icon" href="${themepath}/<spring:message code="app.icon"/>"/>
    <link rel="icon" href="${themepath}/<spring:message code="app.icon"/>"/>
	<link rel="stylesheet" href="${themepath}/style.css" type="text/css" />		
	<link rel="stylesheet" href="${themepath}/superfish.css" type="text/css" />		
	
	<script type="text/javascript" src="${pageContext.request.contextPath}/scripts/jquery-latest.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath}/scripts/common.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath}/scripts/ddaccordion.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath}/scripts/facebox.js"></script>	
	<script type="text/javascript" src="${pageContext.request.contextPath}/scripts/modal.js"></script>	
    <script type="text/javascript" src="${pageContext.request.contextPath}/scripts/pagination.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath}/scripts/util.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath}/scripts/superfish.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath}/scripts/hoverIntent.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath}/scripts/jquery.flip-compressed.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath}/scripts/jquery-ui-personalized-1.6rc6.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath}/scripts/ui.datepicker.js"></script>
	<script type="text/javascript">
		var sessionTimeoutRedirectUrl = '<c:url value="/basic/login"/>';
		var renderMenuUrl = '<c:url value="/basic/renderMenu"/>';
		var errorMsgTimeout = 'session';
		var array_menucode = [<%=arrMenuCode%>];
		
		$(document).ready(function($) {
			$.facebox('${themepath}');
	      	$.modalbox('${themepath}',[
								'<spring:message code="title.confirmModal"/>',
								'<spring:message code="title.infoModal"/>',
								'<spring:message code="title.warningModal"/>',
								'<spring:message code="title.errorModal"/>',
	    	      	   			'<spring:message code="button.modalYes"/>',
	    	      	   			'<spring:message code="button.modalNo"/>',
	    	      	   			'<spring:message code="button.modalOk"/>'
	    	      	  		]
	    	      	  	);
	      	$.pagination('${themepath}', [
								'<spring:message code="label.first"/>',
								'<spring:message code="label.prev"/>',
								'<spring:message code="label.next"/>',
								'<spring:message code="label.last"/>',
								'<spring:message code="label.perPage"/>',
								'<spring:message code="label.of"/>'
							], [5,10,25,50,100]            		
                  		);
      		
	      	$('ul.sf-menu').superfish({ 
	      	    hoverClass:		'sfHover',
	      	    pathClass:		'overideThisToUse', 
	      	    pathLevels:		1, 
	      	    delay:			300, 
	      	    animation:		{opacity:'show'}, 
	      	    speed:			'fast', 
	      	    autoArrows:		true, 
	      	    dropShadows:	true, 
	      	    disableHI:		false, 
	      	    onInit:			function(){}, 
	      	    onBeforeShow:	function(){}, 
	      	    onShow:			function(){}, 
	      	    onHide:			function(){}
	      	  }); 

		});
	       	  
	</script>
</head>
<body>
<table align="center" class="container" cellpadding="0" cellspacing="0">
	<tiles:insert attribute="header" />
	<tr valign="top">
		<td colspan="2" id="content_td" align="left" valign="top">
			<div id="menuContent">
				<tiles:insert attribute="menu" />
			</div>	
			<div id="mainContent" style="width: 100%; overflow: auto;">
				
			</div>	
		</td>
	</tr>
	<tiles:insert attribute="footer" />		
</table>
<div id="loading" style="display:none"><spring:message code="label.loading"/>...</div>
</body>
<tiles:insert attribute="content" />
</html>